how to identify different parts of an object in sql